home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / DeveloperInterfaces / CIncludes / ActionAtomIntf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  1.5 KB  |  67 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ActionAtomIntf.h
  3.  
  4.     Contains:    C declarations for things the Installer wants to tell 
  5.                 action atoms about.
  6.  
  7.     Written by:    Bobby Carp
  8.  
  9.     Copyright:    © 1990, 1992-1993 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <2>     7/12/93    rdm        Added #ifndef __ActionAtomIntf__.
  14.          <1>      7/6/93    KBA        first checked in
  15.          <4>     11/5/91    RRK        Added Function prototype comment
  16.          <3>     11/7/90    BAC        Need to include types.h
  17.          <2>     11/7/90    BAC        Adding the AAPBRec that defines the parameters an action atom
  18.                                     receives.
  19.          <1>     10/8/90    BAC        first checked in
  20.  
  21.     To Do:
  22. */
  23.  
  24. #ifndef __ActionAtomIntf__
  25. #define __ActionAtomIntf__
  26.  
  27.  
  28. #ifndef __Types__
  29. #include <Types.h>
  30. #endif
  31.  
  32.  
  33. enum { before, after, cleanUpCancel };
  34. typedef unsigned char InstallationStage ;
  35.  
  36.  
  37. /* The action atom param block record contains all of the parameters that action atoms */
  38. /* receive.  The first (and only) parameter to action atoms is a ptr to this block (AAPBRecPtr) */
  39.  
  40. struct AAPBRec {
  41.     short                targetVRefNum;
  42.     long                blessedDirID;
  43.     long                aaRefCon;
  44.     Boolean                doingInstall;
  45.     InstallationStage    whichStage;
  46.     Boolean                didLiveUpdate;
  47.     long                installerTempDirID;
  48. };
  49.  
  50. typedef struct AAPBRec AAPBRec;
  51.  
  52. typedef AAPBRec *AAPBRecPtr;
  53.  
  54. /*
  55.     The function prototype for the format 0 Action Atom code is as follows
  56.     
  57.     Boolean    MyActionAtom(AAPBRecPtr myAAPBPtr)
  58.     
  59.     
  60.     The function prototype for the format 1 Action Atom code is as follows
  61.     
  62.     long    MyActionAtom(AAPBRecPtr myAAPBPtr)
  63.     
  64. */
  65.  
  66.  
  67. #endif